package com.hotel.hotelsystem.service;

import com.hotel.hotelsystem.pojo.HotelListES;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
@Repository
public interface EsHotelListService extends ElasticsearchRepository<HotelListES,Integer> {
    //按照酒店名称进行查询并进行分页
    Page<HotelListES> findByhotelName(String hotelName, Pageable pageable);
}
